<?php
class User extends Controller
{
	private $oauth = NULL;
	public function __construct()
	{
		$this->oauth = new WeiboOauth();
	}
	
	public function Login()
	{
		$key = $this->oauth->getRequestToken();
		$_SESSION['key'] = $key;
		$aUrl = $this->oauth->getAuthorizeURL($key);
		echo "<a href='$aUrl'>点此授权</a>";
	}
	
	public function GetUser()
	{
		$userList = UserModule::getUserByUid(123456);
		var_dump($userList);
	}
}